package com.yxx.sys.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.*;

@Configuration
public class SpringMvcConfig extends WebMvcConfigurerAdapter  {

  /**
   * 添加静态资源访问映射配置
   */
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
    //内部静态资资源访问映射
    registry.addResourceHandler("/js/**").addResourceLocations("classpath:/static/js/");
    registry.addResourceHandler("/css/**").addResourceLocations("classpath:/static/css/");
    registry.addResourceHandler("/image/**").addResourceLocations("classpath:/static/image/");
  }


}
